import { createRouter, createWebHistory } from 'vue-router'
const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login/login.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('../views/login/register.vue')
  },
  {
    path: '/fgPassword',
    name: 'fgPassword',
    component: () => import('../views/login/fgPassword.vue')
  },
  {
    path: '/rsPassword',
    name: 'rsPassword',
    component: () => import('../views/login/rsPassword.vue')
  },
  {
    path: '/userInfo',
    name: 'userinfo',
    component: () => import('../views/login/userInfo.vue')
  },
  {
    path: '/main',
    name: 'main',
    component: () => import('../views/main/main.vue')
  },

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
